# -*- coding:utf-8 -*-
class Solution:
    # s 源字符串
    # 没啥说的，一遍就过了
    def replaceSpace(self, s):
        s_ = ''
        for i in s:
            if i == ' ':
                i = '%20'
            s_ = s_ + i
        return s_
        
        # write code here